method
Console.[Symbol.asyncIterator]
Asynchronously read lines from standard input (fd 0)
for await (const line of console) {
console.log(line);
}method
Asynchronously read lines from standard input (fd 0)
for await (const line of console) {
console.log(line);
}